﻿using ZilLion.Service.Crm.ModelBase.EntityBase.RedisEntity;
using ZilLion.Service.Crm.Unities.Cache;

namespace ZilLion.Service.WebInfrastructure.Filter
{
    public class DbAccidFinder : IAccidFinder
    {
        public string Passport { get; set; }
        public string PassportType { get; set; }
        public DbAccidFinder(string PassportType, string Passport)
        {
            this.Passport = Passport;
            this.PassportType = PassportType;
        }

        public AccidModel GetAccid()
        {
            AccidModel Accid= SeRedisHelper.Get<AccidModel>(PassportType + Passport);
            return Accid;
        }

    
    }
}
